<template>
  <view><choose-room v-for="(item, index) in 10" @changeclick="onClick" :key="index" :title="houseInformation + `${index + 1}号楼`"></choose-room></view>
</template>

<script>
import chooseroom from '../../components/choose-room/choose-room';
export default {
  data() {
    return {};
  },
  computed: {
    houseInformation() {
      return this.$store.state.room.houseInformation;
    }
  },
  methods: {
    onClick(e) {
      // console.log(e);
      this.$store.commit('room/getHouseBuilding', e);
      uni.navigateTo({
        url: '/pkg-house/choose-house/choose-house'
      });
    }
  }
};
</script>

<style></style>
